package com.xzit.erpmodel.util;

import java.sql.Connection;
import java.sql.DriverManager;

public class JDBCTools {
    public static Connection getConnection() throws Exception {
        Class.forName("com.mysql.jdbc.Driver");
        String url = "jdbc:mysql://localhost:3306/day04_test01_bookstore";
        Connection conn = DriverManager.getConnection(url,"root","123456");
        return conn;
    }
}